package com.guigu.qxl.service.impl;

import com.guigu.qxl.mapper.SysMenusMapper;
import com.guigu.pojo.SysMenus;
import com.guigu.pojo.SysRoles;
import com.guigu.qxl.service.SysMenusService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SysMenusServiceImpl implements SysMenusService {
    @Autowired
    SysMenusMapper sysMenuMapper;
    @Override
    public List<SysMenus> showMenuByRole(SysRoles r2) {
        return sysMenuMapper.showMenuByRole(r2);
    }

    @Override
    public List<SysMenus> showAllMenu() {
        return sysMenuMapper.showAllMenu();
    }
}
